Ring ring
Sir
J2ME TutorialsBlog
homeHome page

VARIABLES


A variable is a named memory location which stores data temporarily.
A "final" is a memory location which stores data that can't be changed latter in the program. It is a constant variable in the program.
The type of a variable indicates what kind of value it will store.
The name of a variable is known as its identifier .
A variable is given a value through an assignment statement .
Java recognizes different data types of variables depending upon what kind of data they can contain. Java has eight built-in primitive data types designated by reserved words:
byte
short
int
long float
double
char
boolean
Variables of different types occupy different amounts of memory space and are described as having different sizes.
Of the eight primitive data types in Java, the four most commonly used are: double, int, boolean, and char.

A variable is a named memory location which stores data temporarily.
A "final" is a memory location which stores data that can't be changed latter im the program. It is a constant variable in the program.
The type of a variable indicates what kind of value it will store.
The name of a variable is known as its identifier .
A variable is given a value through an assignment statement .
Java recognizes different data types of variables depending upon what kind of data they can contain. Java has eight built-in primitive data types designated by reserved words:
byte
short
int
long float
double
char
boolean
Variables of different types occupy different amounts of memory space and are described as having different sizes.
Of the eight primitive data types in Java, the four most commonly used are: double, int, boolean, and char.

RULES FOR NAMING VARIABLES


All rights reserved
© sirwisdom.tk 2012-2013